#include "Shape.h"
#include "Renderer.h"

Shape::Shape(void)
{
}


Shape::~Shape(void)
{
}
void Shape::draw (Renderer * renderer)
{
	Entity2D::draw(renderer);
}
void Shape::getColor (int &iRed, int &iGreen, int &iBlue) const
{
/*	iRed = getR(vertices[0].color);
	iGreen = getG(vertices[0].color);
	iBlue = getB(vertices[0].color);*/
/*	iRed = GET_ColorFromDWORD(vertices[0].color,cR);
	iGreen = GET_ColorFromDWORD(vertices[0].color,cG);
	iBlue =GET_ColorFromDWORD(vertices[0].color,cB);*/
	/*iRed = 255;
	iGreen=0;
	iBlue =0;*/

}
//----------------------------------------------------------------
void Shape::setColor (int iRed, int iGreen, int iBlue)
{
	for (int i=0; i < uiVertexCount; i++)
	{
		vertices[i].color = D3DCOLOR_XRGB(iRed, iGreen, iBlue);
	}
}